<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!--引入外部文件-->
    <script src="./node_modules/vue/dist/vue.js" ></script>
</head>

<body>
<div id="app">
    <h2><font color="#ffc0cb">黑马胡歌-{{name}}</font> </h2>
    <input type="text" value=""  v-model="num">

    <h2>有{{num}}女孩沉醉于他</h2>

    <input type="button" value="点击增加迷妹" @click="myClick()">
</div>
</body>

<script>

    const app = new Vue({
        el:"#app",
        data:{
            name:"燕海喆",
            num:"1"
        },
        methods:{
            myClick(){
                this.num++;
            }
        }
    })



</script>

</html>